package com.rajaev.dtu.tractor.domain.vo;

import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @Created with IDEA
 * @author: tianjie
 * @Date:2019/6/19
 * @Time:15:22
 */
@Getter
@Setter
@Builder
public class BatteryDailyRuntimeVo {

    private String vin;

    private String carNumber;

    private String bz;
    /**
     * 每日在线时长
     */
    private List<OnlineInfo> list;

    /**
     * 基准在线时长
     */
    private Long baseOnlineTime;

    @Getter
    @Setter
    public  static class OnlineInfo{
        /**
         * 日期（yyyyMMdd）
         */
        private Integer dataDate;

        /**
         * 在线时长
         */
        private Long onlineTime;

        /**
         * 充电时长
         */
        private Long chargeTime;

        /**
         * 耗电时长（工作）
         */
        private Long dischargeTime;
        public OnlineInfo(Integer dataDate, Long onlineTime,Long chargeTime,Long dischargeTime) {
            this.dataDate = dataDate;
            this.onlineTime = onlineTime;
            this.chargeTime = chargeTime;
            this.dischargeTime = dischargeTime;
        }
    }
}
